{ "cells": [ { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Collecting pivottablejs\n", " Downloading pivottablejs-0.1.0-py2.py3-none-any.whl\n", "Installing collected packages: pivottablejs\n", "Successfully installed pivottablejs-0.1.0\n" ] } ], "source": [ "!pip install pivottablejs --user" ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import pandas" ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "collapsed": true }, "outputs": [], "source": [ "auto = pandas.read_csv(\"http://www-bcf.usc.edu/~gareth/ISL/Auto.csv\")" ] }, { "cell_type": "code", "execution_count": 12, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
\n", " | mpg | \n", "cylinders | \n", "displacement | \n", "horsepower | \n", "weight | \n", "acceleration | \n", "year | \n", "origin | \n", "name | \n", "
---|---|---|---|---|---|---|---|---|---|
0 | \n", "18 | \n", "8 | \n", "307 | \n", "130 | \n", "3504 | \n", "12.0 | \n", "70 | \n", "1 | \n", "chevrolet chevelle malibu | \n", "
1 | \n", "15 | \n", "8 | \n", "350 | \n", "165 | \n", "3693 | \n", "11.5 | \n", "70 | \n", "1 | \n", "buick skylark 320 | \n", "
2 | \n", "18 | \n", "8 | \n", "318 | \n", "150 | \n", "3436 | \n", "11.0 | \n", "70 | \n", "1 | \n", "plymouth satellite | \n", "
3 | \n", "16 | \n", "8 | \n", "304 | \n", "150 | \n", "3433 | \n", "12.0 | \n", "70 | \n", "1 | \n", "amc rebel sst | \n", "
4 | \n", "17 | \n", "8 | \n", "302 | \n", "140 | \n", "3449 | \n", "10.5 | \n", "70 | \n", "1 | \n", "ford torino | \n", "